package com.example.reserveseat.Factory;

import java.net.HttpURLConnection;

public class ScheduledFactory {

    public static void setRequestHeader(HttpURLConnection connection){
        // 设置请求头信息
        connection.setRequestProperty("Host", "study.nslib.cn");
        connection.setRequestProperty("access_source", "");
        connection.setRequestProperty("instid", "1570");
        connection.setRequestProperty("xweb_xhr", "1");
        connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090b13)XWEB/11065");
        connection.setRequestProperty("Accept", "*/*");
        connection.setRequestProperty("Sec-Fetch-Site", "cross-site");
        connection.setRequestProperty("Sec-Fetch-Mode", "cors");
        connection.setRequestProperty("Sec-Fetch-Dest", "empty");
        connection.setRequestProperty("Referer", "https://servicewechat.com/wx839adc01def5e06c/84/page-frame.html");
        connection.setRequestProperty("Accept-Language", "zh-CN,zh;q=0.9");

    }
}
